package com.infinit.selfhelp.common.base

import androidx.lifecycle.ViewModel
import com.drake.channel.sendEvent

open class BaseViewModel : ViewModel() {
    fun showLoading() {
        sendEvent(LoadingEvent(true))
    }

    fun hideLoading() {
        sendEvent(LoadingEvent(false))
    }

    data class LoadingEvent(val isShow: Boolean)
}